﻿namespace Mes.Domain.BoundedContext.Entities.MasterData
{
    /// <summary>
    /// 物料
    /// </summary>
    public class Material : EntityBase, ISoftDelete
    {
        /// <summary>
        /// 物料编码
        /// </summary>
        public string Code { get; set; } = string.Empty;

        /// <summary>
        /// 物料名称
        /// </summary>
        public string Name { get; set; } = string.Empty;

        /// <summary>
        /// 物料类Id
        /// </summary>
        public int MaterialClassId { get; set; }

        /// <summary>
        /// 物料类名称
        /// </summary>
        public string MaterialClassName { get; set; } = string.Empty;

        /// <summary>
        /// 物料类类型Id
        /// </summary>
        public int MaterialClassTypeId { get; set; }

        /// <summary>
        /// 物料类类型名称
        /// </summary>
        public string MaterialClassTypeName { get; set; } = string.Empty;


        /// <summary>
        /// 计量单位Id
        /// </summary>
        public int MeasuringUnitId { get; set; }

        /// <summary>
        /// 计量单位名称
        /// </summary>
        public string MeasuringUnitName { get; set; } = string.Empty;

        /// <summary>
        /// 小数位数
        /// </summary>
        public int PrecisionPlace { get; set; }

        /// <summary>
        /// 规格
        /// </summary>
        public string Specification { get; set; } = string.Empty;

        /// <summary>
        /// 生产单元Id
        /// </summary>
        public int? ProdutionUnitId { get; set; }

        /// <summary>
        /// 生产单元名称
        /// </summary>
        public string ProdutionUnitName { get; set; } = string.Empty;

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; } = string.Empty;

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? Updatetime { get; set; } = DateTime.Now;

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDeleted { get; set; } = false;
    }
}
